#include "Sa2dDom.h"

geometry::geometry() {

}

string geometry::getShape_type() {
	return shape_type;
}

std::vector<vertex*> geometry::getVertices() {
	return vertices;
}

void geometry::setShape_type(string shape_type) {
	this->shape_type = shape_type;
}

void geometry::setVertices(std::vector<vertex*> vertices) {
	this->vertices = vertices;
}

void geometry::addVertice(vertex * vertex) {
	vertices.push_back(vertex);
}

string geometry::toString(int indent) {
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "geometry:\n";
	returnString << tabs << "shape type: " << shape_type << "\n";
	returnString << tabs << "vertex count: " << vertices.size() << "\n";
	return returnString.str();

}
